DevJourney

C/Multiplication Table/WHILE/TABLE.C

//Multiplication table
#include<stdio.h>
#include<conio.h>
int main() 
{
	int n,p,i;
	
	printf("Enter a number : ");
	scanf("%d",&n);
	i=1;
	printf("MULTIPLICATION TABLE OF %d",n);
	while(i<=10)
		{
			p=i*n;
			printf("\n%d x ",n);
			printf("%d = ",i);
			printf("%d",p);
			i=i+1;
		}
	getch();
    return 0;
}
View on GitHub